#include "../trap/syscall.h"

#define SYSCALL(name) \
  .globl name;        \
  .align 2;           \
name:                 \
  li a7, SYS_##name;  \
  ecall;              \
  ret

SYSCALL(fork);
SYSCALL(exit);
SYSCALL(wait);
SYSCALL(pipe);
SYSCALL(read);
SYSCALL(write);
SYSCALL(close);
SYSCALL(kill);
SYSCALL(exec);
SYSCALL(fstat);
SYSCALL(chdir);
SYSCALL(dup);
SYSCALL(getpid);
SYSCALL(sbrk);
SYSCALL(pause);
SYSCALL(uptime);
SYSCALL(open);
SYSCALL(mknod);
SYSCALL(unlink);
SYSCALL(link);
SYSCALL(mkdir);

